package com.rightsidetech.trade.service;

import com.github.pagehelper.PageInfo;
import com.rightsidetech.commom.base.ResponseData;
import com.rightsidetech.trade.dtos.request.TdOrderSalesVolumeDayStatisReq;
import com.rightsidetech.trade.dtos.response.TdCouponSumAmountStatis;
import com.rightsidetech.trade.dtos.response.TdOrderIncomeRefundDayStatisResp;
import com.rightsidetech.trade.dtos.response.TdOrderSalesVolumeDayStatisResp;
import com.rightsidetech.trade.entity.TdOrderIncomeSalesDayStatis;

import java.util.List;

public interface TdStatisService {

    ResponseData<PageInfo<TdOrderSalesVolumeDayStatisResp>> orderSalesVolumeDayStatisPage(TdOrderSalesVolumeDayStatisReq req);

    List<TdOrderSalesVolumeDayStatisResp> orderSalesVolumeDayStatisList(TdOrderSalesVolumeDayStatisReq req);

    ResponseData<PageInfo<TdOrderIncomeRefundDayStatisResp>> orderIncomeRefundDayStatisPage(TdOrderSalesVolumeDayStatisReq req);

    List<TdOrderIncomeRefundDayStatisResp> orderIncomeRefundDayStatisList(TdOrderSalesVolumeDayStatisReq req);

    //统计销量
    ResponseData statisOrderSalesVolumeDay(String statisTime, TdOrderIncomeSalesDayStatis tdStatis3);

    List<Long> statisOrderSalesVolumeDayByStatis(String statisTime);

    //统计财务
    ResponseData statisIncomeRefundDay(String statisTime, TdOrderIncomeSalesDayStatis tdStatis3);

    //统计总应付金额
    TdCouponSumAmountStatis statisTotalAmountByActivityId(Long activityId);
}
